package laboratoryQ.ui.draw;

import java.awt.Graphics;
import java.util.ArrayList;
import java.util.List;

import laboratoryQ.ui.draw.style.IStylizer;

public class MultiDrawer implements IDrawer {
	private List<IDrawer> drawers = new ArrayList<IDrawer>();

	public MultiDrawer(IDrawer ... drawers) {
		for (IDrawer d : drawers) {
			this.drawers.add(d);
		}
	}

	@Override
	public void draw(Graphics g, IStylizer stylizer) {
		for (IDrawer d : drawers) {
			d.draw(g, stylizer);
		}
	}

	public List<IDrawer> getDrawersList() {
		return drawers;
	}
}
